//
//  AppDelegate.m
//  INMOTION_CustomMadeProject
//
//  Created by cjg on 2021/3/22.
//  Copyright © 2021 cjg. All rights reserved.
//

#import "AppDelegate.h"
#import "NewTabBarController.h"
#import "IMTHTTPSessionManager.h"
#import "KSLanguageManager.h"
#import "IMTUnitHelper.h"
#import "IMTNavigationController.h"
#import "LXCarHomeViewController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    // 配置语言
    [[KSLanguageManager sharedInstance] configLanguage];
    [[KSLanguageManager sharedInstance] setUseSystemLanguage:YES];
    [IMTUnitHelper useMetricUnit];
    
    //根据系统语言设置服务器地址和公英制
    [[IMTHTTPSessionManager sharedInstance] configUrl];

    //显示视图
//    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
//    self.window.rootViewController = [[NewTabBarController alloc] init];
//    self.window.backgroundColor = [UIColor whiteColor];
//    [self.window makeKeyAndVisible];
    
    
    LXCarHomeViewController *carvc = [[LXCarHomeViewController alloc] initWithNibName:@"LXCarHomeViewController" bundle:nil];
    IMTNavigationController *carNav = [[IMTNavigationController alloc] initWithRootViewController:carvc];
    
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    self.window.rootViewController = carNav;
    self.window.backgroundColor = [UIColor whiteColor];
    [self.window makeKeyAndVisible];
    

    return YES;
}




@end
